﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Employee_salary
{
    class Worker: Employee
    {
        private int YearSalary { get; set; }
       
        private string Name { get; set; }


        public Worker( string name, int yearSalary) : base(name)
            {
           
            Name = name;
            YearSalary = yearSalary;
        }

        override public void CalculateSalary()
        {
          
            Console.WriteLine("  Permanint  -  Name: {0}  salary:  {1} $; ", Name, YearSalary / 12);
        }

    }
}
